package com.lepu.datajackson.annotation;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.lepu.datajackson.config.SensitiveStrategy;
import com.lepu.datajackson.jackson.SensitiveJsonSerializer;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
@JacksonAnnotationsInside
@JsonSerialize(using = SensitiveJsonSerializer.class)
public @interface SensitiveInfo {

    SensitiveStrategy value();
}
